#ifndef FRIEND_H
#define FRIEND_H

#include <QWidget>
#include <QTextEdit>
#include <QListWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "online.h"
#include "protocol.h"
#include "tcpclient.h"
#include <QInputDialog>

class Friend : public QWidget
{
    Q_OBJECT
public:
    explicit Friend(QWidget *parent = nullptr);
    void ShowAllUser(PDU* pdu);

signals:
private:
    QTextEdit *m_pShowMsgTE;
    QListWidget *m_pFriendListWidget;
    QLineEdit * m_pInputMsgLE;
    QPushButton* m_pDelFriendPB;
    QPushButton* m_pFlushFriendPB;
    QPushButton* m_pShowOnlineUsrPB;
    QPushButton* m_pSearchUsrPB;
    QPushButton* m_pMsgSendPB;
    QPushButton* m_pPrivateChatPB;
    Online* m_pOnline;
public slots:
    void ShowOnlineUsrPB_clicked();
    void SearchUsrPB_clicked();

};

#endif // FRIEND_H
